
import React, { Component } from 'react';
import {StyleSheet, Text, View,Picker} from 'react-native';

export default class PickerDemo extends Component {
    constructor(props) {
        super(props);
        this.state = {
            language: null,
        };
      }
      render() {
        return (
            <Picker
            selectedValue={this.state.language}
            onValueChange={(lang) => this.setState({language: lang})}>
            <Picker.Item label="Java" value="java" />
            <Picker.Item label="JavaScript" value="js" />
            </Picker>
        );
      }
}
